using System;
using System.Threading.Tasks;

namespace Admin2025.Application
{
    public interface IUserService
    {
        /// <summary>
        /// 用户授权（登录）
        /// </summary>
        Task<bool> AuthorizeAsync(string userName, string password);

        /// <summary>
        /// 分配角色给用户
        /// </summary>
        Task AssignRoleAsync(Guid userId, Guid roleId);
    }
}
